home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7411 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: harrier.csrv.uidaho.edu!ian9404
  2. From: ian9404@harrier.csrv.uidaho.edu (Ian Williams)
  3. Newsgroups: comp.lang.c++
  4. Subject: Visual C++ Serializing CStrings
  5. Date: 23 Feb 1996 05:39:36 GMT
  6. Organization: University of Idaho, Moscow, Idaho
  7. Distribution: world
  8. Message-ID: <4gjjuo$poc@newshound.csrv.uidaho.edu>
  9. NNTP-Posting-Host: harrier.csrv.uidaho.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. Content-Transfer-Encoding: 7bit
  13. X-Newsreader: TIN [version 1.2 PL2]
  14.  
  15. I am currently learning Visual C++ and have run into a problem, one that is not
  16. explained in any of the documentation on the CD or the *PATHETIC* 1 (count 'em 1)
  17. book that came with 2.0.
  18. No one around here even has worked on Visuall C++ and I don't exactly have the money
  19. to spend on a $50.00 book, so I'm asking how do you serialize a CString through the
  20. CArchive default serialization in AppWizard's CDoument?  
  21. Every time I try it gives me a " 'idenitifier' ambigoous" error (one that occurred
  22. too many times until I ran across the fact that CArchive only serializes 4 variable
  23. types).
  24.     The CString itself is a member variable of a self-made class as a variable
  25. which I need to re-assign different string constants to through a dialog box combo
  26. box list.  
  27.  
  28. Listing of class as follows:
  29. class CMonster : public CEmpty (base class with one WORD variable type used by many other clases)
  30. { CString iMonName;
  31.     (..other variables)
  32. };
  33.  
  34. It is a global class used by almost every element within the program.
  35. (By the way, if you couldn't tell, it's for a game)  :)
  36.  
  37. Thanx for any possible tutoring.....
  38.